home *** CD-ROM | disk | FTP | other *** search
/ Acorn RISC PD-CD 1 / Acorn RISC PD-CD 1.iso / languages / c / _desklibsm / h / gfx < prev    next >
Encoding:
Text File  |  1993-05-26  |  2.9 KB  |  74 lines

  1.  
  2. #ifndef __dl_gfx_h
  3. #define __dl_gfx_h
  4. #define  plot_SOLIDBOTH       0x00
  5. #define  plot_SOLIDEXFINAL    0x08
  6. #define  plot_DOTTEDBOTH      0x10
  7. #define  plot_DOTTEDEXFINAL   0x18
  8. #define  plot_SOLIDEXINIT     0x20
  9. #define  plot_SOLIDEXBOTH     0x28
  10. #define  plot_DOTTEDEXINIT    0x30
  11. #define  plot_DOTTEDEXBOTH    0x38
  12. #define  plot_POINT           0x40
  13. #define  plot_HHORZLINEFILLNB 0x48
  14. #define  plot_TRIANGLEFILL    0x50
  15. #define  plot_HORIZLINEFILLB  0x58
  16. #define  plot_RECTANGLEFILL   0x60
  17. #define  plot_HORIZLINEFILLF  0x68
  18. #define  plot_PARALLELFILL    0x70
  19. #define  plot_HORIZLINEFILLNF 0x78
  20. #define  plot_FLOODTOBACK     0x80
  21. #define  plot_FLOODTOFORE     0x88
  22. #define  plot_CIRCLE          0x90
  23. #define  plot_CIRCLEFILL      0x98
  24. #define  plot_CIRCLEARC       0xA0
  25. #define  plot_SEGMENT         0xA8
  26. #define  plot_SECTOR          0xB0
  27. #define  plot_BLOCK           0xB8
  28. #define  plot_ELLIPSE         0xC0
  29. #define  plot_ELLIPSEFILL     0xC8
  30. #define  plot_GRAPHICSCHAR    0xD0
  31. #define  plot_SPRITE          0xE8
  32. #define  plot_MOVECURSORREL   0
  33. #define  plot_DRAWRELFORE     1
  34. #define  plot_DRAWRELINVERSE  2
  35. #define  plot_DRAWRELBACK     3
  36. #define  plot_MOVECURSORABS   4
  37. #define  plot_DRAWABSFORE     5
  38. #define  plot_DRAWABSINVERSE  6
  39. #define  plot_DRAWABSBACK     7
  40. #define  plot_BMOVEREL        0
  41. #define  plot_BMOVERECTREL    1
  42. #define  plot_BCOPYRECTREL    2
  43. #define  plot_BMOVEABS        4
  44. #define  plot_BMOVERECTABS    5
  45. #define  plot_BCOPYRECTABS    6
  46. extern void GFX_Plot(int plotcode, int x, int y);
  47. #define GFX_Move(x, y) GFX_Plot(plot_SOLIDBOTH + plot_MOVECURSORABS, x, y)
  48. #define GFX_MoveBy(x, y) GFX_Plot(plot_SOLIDBOTH + plot_MOVECURSORREL, x, y)
  49. #define GFX_PlotPoint(x, y) GFX_Plot(plot_POINT + plot_DRAWABSFORE, x, y)
  50. #define GFX_PlotPointBy(x, y) GFX_Plot(plot_POINT + plot_DRAWRELFORE, x, y)
  51. #define GFX_Draw(x, y) GFX_Plot(plot_SOLIDBOTH + plot_DRAWABSFORE, x, y)
  52. #define GFX_DrawBy(x, y) GFX_Plot(plot_SOLIDBOTH + plot_DRAWRELFORE, x, y)
  53. extern void GFX_Rectangle(int x, int y, int w, int h);
  54. #define GFX_RectangleFill(x, y, w, h)                       \
  55.   {                                                         \
  56.     GFX_Move(x, y);                                         \
  57.     GFX_Plot(plot_RECTANGLEFILL + plot_DRAWRELFORE, w, h);  \
  58.   }
  59. #define GFX_Circle(x, y, r)                                 \
  60.   {                                                         \
  61.     GFX_Move(x, y);                                         \
  62.     GFX_Plot(plot_CIRCLE + plot_DRAWRELFORE, (r), 0);       \
  63.   }
  64. #define GFX_CircleFill(x, y, r)                             \
  65.   {                                                         \
  66.     GFX_Move(x, y);                                         \
  67.     GFX_Plot(plot_CIRCLEFILL + plot_DRAWRELFORE, (r), 0);   \
  68.   }
  69. extern void GFX_CLG(void);
  70. extern void GFX_Write0(char *string);
  71. extern void GFX_WriteN(char *string, int numchars);
  72. extern void GFX_Wait(void);
  73. #endif
  74.